package com.whx.managea.dao;

import com.whx.managea.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentDAO extends BaseDAO<Student,String> {

    // 带有条件的查询方法
    List<Student> findAll(@Param("start") Integer start,@Param("rows") Integer rows,@Param("col") String searchCol, @Param("val") String searchValue);

    //统计学生总数
    Integer counts(@Param("col") String searchCol, @Param("val") String searchValue);
}
